package com.rightsidetech.mall.mapper;


import com.rightsidetech.mall.entity.MallCommodityPicture;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MallCommodityPictureMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallCommodityPicture record);

    int insertSelective(MallCommodityPicture record);

    MallCommodityPicture selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallCommodityPicture record);

    int updateByPrimaryKey(MallCommodityPicture record);

    int insertList(Map<String, Object> map);

    List<String> selectPictureById(@Param("commodityId") Long commodityId, @Param("pictureType") Byte pictureType);

    int deleteByCommodityId(Long id);
}